#include<iostream>
#include<string.h>
#include<sys/types.h>
#include<unistd.h>
#include<signal.h>
int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        std::cout<<"./Mykill signalnumber pid"<<std::endl;
        return 1;
    }
    int signalnum=std::stoi(argv[1]);
    int target=std::stoi(argv[2]);
    int ret=kill(target,signalnum);
    if(ret==0)
    {
        printf("send success!\n");
    }
    else
    {
        perror("send fail!\n");
    }
    return 0;
}
